package edu.uic.readfile;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;

public class StopWordList
{
	public HashSet<String> stopwords = new HashSet<String>();
	public HashSet<String> postags = new HashSet<String>();
	
	public StopWordList()
	{
		try
		{
			BufferedReader br1 = new BufferedReader(new FileReader("stopWords.txt"));
			String templine = br1.readLine();
			
			while(templine != null)
			{
				stopwords.add(templine);
				
				templine = br1.readLine();
			}
			
			BufferedReader br2 = new BufferedReader(new FileReader("postags.txt"));
			templine = br2.readLine();
			
			while(templine != null)
			{
				postags.add(templine);
				
				templine = br2.readLine();
			}
			
		} catch (FileNotFoundException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
}
